import { Controller, Get, UseFilters, UseGuards } from '@nestjs/common';
import { ArgumentContextService } from './argument-context.service';
import { CustomFilter } from './custom.filter';
import { CustomException } from './customException';
import { CustomGuard } from './customGuard.guard';

@Controller('api/argument-context')
export class ArgumentContextController {
  constructor(
    private readonly argumentContextService: ArgumentContextService,
  ) {}

  @Get()
  @UseFilters(CustomFilter)
  @UseGuards(CustomGuard)
  findAll() {
    throw new CustomException('aaa', 'bbb');
    return this.argumentContextService.findAll();
  }
}
